package com.workshop.entity;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.Version;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author chengluqiang
 * @since 2019-04-13
 */
@Data
@Accessors(chain = true)
public class UUser extends Model<UUser> {

    private static final long serialVersionUID = 1L;

    private String id;
    /**
     * 微信id的唯一标识
     */
    private String openId;
    /**
     * 管理员id（商家账号）直接关联用户账号
     */
    @TableField("sysUserId")
    private Long sysUserId;
    /**
     * 昵称拼音首字母
     */
    private String initials;
    /**
     * 昵称
     */
    private String nickName;
    private String wxId;
    /**
     * 用户头像
     */
    @TableField("avatarUrl")
    private String avatarUrl;
    /**
     * 连接数据字典 对应sex 的值
     */
    private Integer sex;
    /**
     * 手机号
     */
    private String phone;
    /**
     * 用户推荐人
     */
    private String userParentId;
    /**
     * 用户状态 引用数据字典表 默认是1=正常
     */
    @TableField("userStatus")
    private Integer userStatus;
    /**
     * 所在城市 微信提供数据
     */
    private String city;
    /**
     * 所在省份 微信提供数据
     */
    private String province;
    /**
     * 所在国家 微信提供数据
     */
    private String country;
    /**
     * 用户语言 微信提供数据
     */
    private String language;
    /**
     * 爱好名词拼接 用逗号隔开 例如： 吃饭，喝酒，打飞机 备注：爱好名词是由数据字典获取
     */
    private String hobby;
    /**
     * 等级解析
     */
    private String levelParse;
    /**
     * 等级
     */
    private Integer level;
    private Date createTime;
    private Date updateTime;


    public static final String ID = "id";

    public static final String OPEN_ID = "open_id";

    public static final String SYSUSERID = "sysUserId";

    public static final String INITIALS = "initials";

    public static final String NICK_NAME = "nick_name";

    public static final String WX_ID = "wx_id";

    public static final String AVATARURL = "avatarUrl";

    public static final String SEX = "sex";

    public static final String PHONE = "phone";

    public static final String USER_PARENT_ID = "user_parent_id";

    public static final String USERSTATUS = "userStatus";

    public static final String CITY = "city";

    public static final String PROVINCE = "province";

    public static final String COUNTRY = "country";

    public static final String LANGUAGE = "language";

    public static final String HOBBY = "hobby";

    public static final String LEVEL_PARSE = "level_parse";

    public static final String LEVEL = "level";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_TIME = "update_time";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
